<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>加载新文档</title>
<script type="text/javascript">
function newDoc(){
	window.location.assing("http://www.w3school.com.cn")
}
</script>
</head>

<body>
<input type="button" value="加载新文档" onClick="newDoc()">
</body>
</html>
